package com.aabte.weather.city.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlRootElement(name = "d")
@XmlAccessorType(XmlAccessType.FIELD)
public class City {

    @JsonProperty("cityId")
    @XmlAttribute(name = "d1")
    private String cityId;
    @JsonProperty("cityName")
    @XmlAttribute(name = "d2")
    private String cityName;
    @JsonProperty("cityCode")
    @XmlAttribute(name = "d3")
    private String cityCode;
    @JsonProperty("province")
    @XmlAttribute(name = "d4")
    private String province;

}
